#include <stdio.h>
#include <string.h>
#include <stdlib.h>

void GetMemory(char* *p, int num)
{
	*p = (char*)malloc(num);
}

int main()
{
	char *str = NULL;
	GetMemory(&str, 100);
	strcpy(str, "hello");
	printf(str);
	free(str);
	str = NULL;
	 
	return 0;
 } 
